package com.sxran.im.handler;

import com.baomidou.mybatisplus.core.conditions.query.LambdaQueryWrapper;
import com.sxran.im.dao.ImGroupMapper;
import com.sxran.im.info.ImGroup;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
@Slf4j
public class SearchGroupListHandler extends AbstractCmdHandler<String>{
    @Resource
    private ImGroupMapper imGroupMapper;

    @Override
    public Object doBeanService(String bean) {
        LambdaQueryWrapper<ImGroup> queryWrapper = new LambdaQueryWrapper<>();
        List<ImGroup> imGroups = imGroupMapper.selectList(queryWrapper);
        return imGroups;
    }
}
